package com.rear.service;

import com.rear.entity.MessageRecordEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author October
 * @email chenzeming@9an-data.com
 * @date 2017-04-14 12:00:02
 */
public interface MessageRecordService {
	
	MessageRecordEntity queryObject(Integer id);
	
	List<MessageRecordEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(MessageRecordEntity messageRecord);
	
	void update(MessageRecordEntity messageRecord);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);
	
	/**
	 * 已读数据数量
	 * @param channelid
	 * @return
	 */
	int messagesRecordCount(Map<String, Object> map);
}
